#include<iostream>
using namespace std;
int main()
{
	int length(const char* p);
	int len;
	char str[20];
	cout << "input string:";
	cin >> str;
	len = length(str);
	cout << "The length of string is " << len << "." << endl;
	return 0;
}
int length(const char* s)
{
	int count = 0;
	while (s[count++]);

	return count - 1;

}